package com.itcs.rongyun.utils;

import java.nio.charset.Charset;

public class Constants {
	
	public static final String APP_SERVER_PATH = "http://www.itc-pay.com/appapi";

	public static final String WEB_SERVER_PATH = "http://www.itc-pay.com";

//	public static final String TOLLFARE_QRCODE = "http://www.itc-pay.com/appapi/app/trans/qrcode";
	public static final String TOLLFARE_QRCODE = "http://test.itc-pay.com:8083/etcswap/app/trans/qrcode2";
//	public static final String TOLLFARE_QRCODE = "http://127.0.0.1:8080/etcswap/app/trans/qrcode2";
	
	/***********************************系统其他配置***********************************/
	//api网页接口
	public static final String REST_URL = "/api";
	//app接口
	public static final String REST_APP_URL = "/app";
	//pc接口
	public static final String REST_PC_URL = "/pc";
	 
	//加密方式
	public static final String KEY = "dreamstony";
	
	//网页登录 session
	public static final String LOGIN_USER = "loginUser";
	
	//系统根目录
	public static final String LOCAL_PATH = Constants.class.getResource("/").getPath(); 
	
	//附近的距离
	public static final Integer distance = 500; 
	
	/********************************淘宝短信验证码KEY*******************************/
	/*
	环境		HTTP请求地址								HTTPS请求地址
	正式环境	http://gw.api.taobao.com/router/rest	https://eco.taobao.com/router/rest
	沙箱环境	http://gw.api.tbsandbox.com/router/rest	https://gw.api.tbsandbox.com/router/rest
	*/
	public static final String TAOBAO_URL="https://eco.taobao.com/router/rest";
	public static final String TAOBAO_APPKEY="23321372";
	public static final String TAOBAO_APPSECRET="2944cca85ca863a1e4fcf53890f4593c";
	
	
	/***********************************短信模板***********************************/
	// 报备模板必须在 最后+上一个空格
	public static final String BIND_CODE_SMS_FORMAT_TEXT = "您的绑定验证码:{0},请在3分钟内提交，逾期无效。 ";
	public static final String COMMON_CODE_SMS_FORMAT_TEXT = "您的验证码:{0},请在3分钟内提交，逾期无效。 ";
	public static final String VERIFY_CODE_SMS_FORMAT_TEXT = "注册验证码:{0}，请在5分钟内提交，逾期无效。 ";
	public static final String PASSWORD_CODE_SMS_FORMAT_TEXT = "新密码{0}重置已成功，请务必妥善保管。"; 
	
	
	
	/***********************************阿里云资源配置信息***********************************/
	//图片
	public static final String xhbImage_BucketName = "xhb-image";
	public static final String xhbImage_RemoteUrl = "http://xhb-image.oss-cn-hangzhou.aliyuncs.com/";
	//语音
	public static String xhbVoice_BucketName = "xhb-voice"; 
	public static final String xhbVoice_RemoteUrl = "http://xhb-image.oss-cn-hangzhou.aliyuncs.com/";
	
	
	
	/***********************************ETCS通讯盒配置信息***********************************/
	//ETCS系统开放的端口号
	public static final Integer ETCS_SERVER_PORT = 8098;
	
	//ETCS系统开放的IP
	
	//正式库地址
//   public static final String ETCS_SERVER_LOCALHOST = "123.56.79.35";
//   public static final String ETCS_SERVER_LOCALHOST = "127.0.0.1";
   public static final String ETCS_SERVER_LOCALHOST = "0.0.0.0";

	//本地测试
//	public static final String ETCS_SERVER_LOCALHOST = "192.168.30.104";
	
	public static final  Charset CHARSET= Charset.forName("UTF-8");
	
	public static final  Charset CHARSET_UTF8= Charset.forName("UTF-8");
	
	
	
	/***********************************融云配置信息***********************************/
	
	public static final String RONGCLOUD_URI = "http://api.cn.ronghub.com";
	 
	//正式环境
//	public static final String RONGCLOUD_APPKEY = "tdrvipksr5jm5"; //正式环境
//	public static final String RONGCLOUD_APPSECRET="X7Yn5pOpeQ6"; 
	
	//开发环境
//	public static final String RONGCLOUD_APPKEY = "k51hidwq1b70b"; //开发环境
//	public static final String RONGCLOUD_APPSECRET="duu7vC27f1e"; 
//	public static final String RONGCLOUD_APPKEY = "mgb7ka1nmvv6g"; //测试环境环境
//	public static final String RONGCLOUD_APPSECRET="yGW8oQnRolok";
	
	//阿里生产正式环境
	public static final String RONGCLOUD_APPKEY = "8w7jv4qb8ddxy";
	public static final String RONGCLOUD_APPSECRET="uxdRu3XFTd"; 
	
	
	//融云默认系统用户
	public static final String RONGCLOUD_USERID="808888888888888";

	
	/***********************************极光配置信息***********************************/
	
	public static final String JPUSH_APPKEY = "e584379525523df263cc43d2";
	
	public static final String JPUSH_MASTER_SECRET = "91dcb568db1d20ab01a23743";

	
	/***********************************极光管理员配置信息***********************************/
	
	public static final String JPUSH_ADMIN_APPKEY = "305366ef7496099e7d7985b8";
	
	public static final String JPUSH_ADMIN_MASTER_SECRET = "a60ab9496f3f633a95a49df0";
	
	
	
	/***********************************APICloud配置信息***********************************/
	
	public static final String APICLOUD_APPID = "A6992236481608";
	
	public static final String APICLOUD_APPKEY = "5C959CC0-0421-B2BF-02A8-0F2356CBAA24";
	
	
 
	/**********************************支付宝支付成功状态码***********************/
	//支付宝支付成功状态码
	public static final String ALIPAY_TRADE_SUCCESS = "TRADE_SUCCESS";
	
	public static final String ALIPAY_TRADE_FINISHED = "TRADE_FINISHED";
	
	//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
	
	// 合作身份者ID，以2088开头由16位纯数字组成的字符串
	public static String ALIPAY_PARTHER= "2088121516265641";

	// 收款支付宝账号
	public static String ALIPAY_SELLER_EMAIL = "lilei@daogee.com";

	// 收款支付宝账号
	public static String ALIPAY_APP_ID = "2015121500977768";

	
	// 商户的私钥
	public static String ALIPAY_KEY = "znf3qwhvd7f1mnpjg1h01qkq1sk21x3v";

	//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

	// 调试用，创建TXT日志文件夹路径
	public static String ALIPAY_LOG_PATH = "C:\\";

	// 字符编码格式 目前支持 gbk 或 utf-8
	public static String ALIPAY_INPUT_CHARSET= "utf-8";
	
	// 签名方式 不需修改
	public static String ALIPAY_SIGN_TYPE = "MD5";
	
	//生成订单  防止订单重复的 时间判断  (分钟为单位)
	public static final Integer ALIPAY_CONTROL_CREATE_ORDER_MINUTE = 5;
	
	//余额支付 超时判断时间  超过订单不能支付 (分钟为单位)
	public static final Integer ALIPAY_CONTROL_PAY_ORDER_MINUTE = 15;
	
	// 超时判断时间  
	public static final Integer ALIPAY_NOT_PAY_ORDER_MINUTE = 30;

	//支付宝退款回调地址
	public static final String ALIPAY_CONSUME_REFUND_CALLBACK_URL = APP_SERVER_PATH + "/callBack/alipayConsumeRefund";

	//异步通知（用户改变用户订单的付款状态）确定用户是否付款
	public static final String ALIPAY_NOTIFY_CALLBACK_URL = APP_SERVER_PATH + "/callBack/webConsumeCallBack";

	//付款完成跳到本网站的哪个页面
	public static final String ALIPAY_RETURN_CALLBACK_URL = APP_SERVER_PATH + "/callBack/alipayFinsh";

	//扫码付款完成跳到本网站的哪个页面
	public static final String ALIPAY_QRCODE_RETURN_CALLBACK_URL = APP_SERVER_PATH + "/callBack/qrcodeAlipayFinsh";

	/**支付宝公钥-从支付宝服务窗获取*/
    public static final String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";

    /**签名编码-视支付宝服务窗要求*/
    public static final String SIGN_CHARSET      = "GBK";

    /**字符编码-传递给支付宝的数据编码*/
    public static final String ALIPAY_CHARSET           = "GBK";

    /**签名类型-视支付宝服务窗要求*/
    public static final String SIGN_TYPE         = "RSA";
    
    
    public static final String PARTNER           = "2088911227080000";

    /** 服务窗appId  */
    //TODO !!!! 注：该appId必须设为开发者自己的服务窗id  这里只是个测试id
    public static final String APP_ID            = "2015121500977768";

    //开发者请使用openssl生成的密钥替换此处  请看文档：https://fuwu.alipay.com/platform/doc.htm#2-1接入指南
    //TODO !!!! 注：该私钥为测试账号私钥  开发者必须设置自己的私钥 , 否则会存在安全隐患 
    public static final String PRIVATE_KEY       = "";

    //TODO !!!! 注：该公钥为测试账号公钥  开发者必须设置自己的公钥 ,否则会存在安全隐患
    public static final String PUBLIC_KEY        = "";

    /**支付宝网关*/
    public static final String ALIPAY_GATEWAY    = "https://openapi.alipay.com/gateway.do";

    /**授权访问令牌的授权类型*/
    public static final String GRANT_TYPE        = "authorization_code";
	
	/**********************************微信***********************/ 
	// appid
	public static final String WEICHAT_APP_ID = "wx78adac3a3f1bf4df";
	
	// 商户号
	public static final String WEICHAT_MCH_ID = "1287156301";
	
	// API密钥，在商户平台设置
	public static final String WEICHAT_API_KEY = "wx78adac3a3f1bf4dfLILEI895657788";

	//微信公众号密匙
	public static final String WEICHAT_PUBLIC_APP_SECRET = "49b1f954e822d9ceddae214e7f35f93b";

	//微信公众号open_id
	public static final String WEICHAT_PUBLIC_OPEN_ID = "oHgbjwLiwK4998PZd6l1QYnOWFzM";
		
	// 微信统一下单地址
	public static final String WEICHAT_UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
	
	// 微信充值回调地址
	public static final String WECHAT_RECHARGE_CALLBACK_URL = APP_SERVER_PATH + "/callBack/wechatRechargeCallBack";
	
	// 微信消费回调地址
	public static final String WECHAT_CONSUME_CALLBACK_URL = APP_SERVER_PATH + "/callBack/wechatConsumeCallBack";
	
	// 微信消费回调地址
	public static final String WECHAT_PUBLIC_CONSUME_CALLBACK_URL = APP_SERVER_PATH + "/callBack/wechatPublicConsumeCallBack";
	
	// 微信购买券回调地址
	public static final String WECHAT_BUY_COUPON_CALLBACK_URL = APP_SERVER_PATH + "/callBack/wechatBuyCouponCallBack";
	
	// 微信公众号充值回调地址
	public static final String WECHAT_PUBLIC_RECHARGE_CALLBACK_URL = APP_SERVER_PATH + "/callBack/wechatPublicRechargeCallBack";

	// 微信公众号购买券回调地址
	public static final String WECHAT_PUBLIC_BUY_COUPON_CALLBACK_URL = APP_SERVER_PATH + "/callBack/wechatPublicBuyCouponCallBack";

	//微信证书路径
	public static final String WECHAT_CERTIFICATE_PATH = "/apiclient_cert.p12";
	
	//微信退款地址
	public static final String WECHAT_REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
	 
	// 微信成功状态码
	public static final String WECHAT_SUCCESS = "SUCCESS";
	 
	
}
